﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
 CodeBehind="TournamentScorers.aspx.cs" Inherits="Nivdal.TournamentScorers" Theme="SkinFile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="TournamentNameLabel" runat="server" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">

    
    <asp:GridView ID="ScorersGrid" runat="server" SkinID="Professional" DataSourceID="ScorersDataSource"
     AutoGenerateColumns="false">
    <Columns>
        <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Player %>">
            <ItemTemplate>
                <asp:HyperLink ID="PlayerHyperlink" runat="server" Text='<%# Eval("PlayerName") %>'
                    NavigateUrl='<%# "~/Player.aspx?Id=" + Eval("PlayerId") %>' SkinID="BlackHyperLinkSkin"></asp:HyperLink>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Team %>">
            <ItemTemplate>
                <asp:HyperLink ID="TeamHyperlink" runat="server" Text='<%# Eval("TeamName") %>' SkinID="BlackHyperLinkSkin"
                    NavigateUrl='<%# ((bool)Eval("IsNT") ? "~/NationalTeam.aspx?Id=" : "~/TeamHomePage.aspx?TeamId=") + Eval("TeamId") %>' ></asp:HyperLink>
            </ItemTemplate>
        </asp:TemplateField>                        
        <asp:TemplateField  HeaderText="<%$ Resources:Resource, Global_Goals %>">
            <ItemTemplate>
                <asp:Label ID="NumGoalsLabel" runat="server" Text='<%# Eval("NumGoals") %>' SkinID="GridLabel"></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>  
    </Columns> 
    <EmptyDataTemplate>
        <asp:Label ID="NoScorersLabel" runat="server" Text="<%$ Resources:Resource, TournamentScorers_NoScorers %>" SkinID="GridLabel"></asp:Label>
    </EmptyDataTemplate>
    </asp:GridView>
    <br /><br />
    <asp:HyperLink ID="TournamentLink" runat="server" Text="<%$ Resources:Resource, Global_BackHome %>" SkinID="GreenTitleHyperLink" ></asp:HyperLink>
    
    <asp:SqlDataSource ID="ScorersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetTournamentScorers" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
